<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="s" uri="/struts-tags"%>


<script type="text/javascript" src="js/jquery.itextclear.js"></script>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						$(
								'input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], textarea',
								'.form').iTextClear();
					});
</script>
<!-- jQplot CSS -->

<link rel="stylesheet" media="screen" href="css/Tree.css" />
<!-- jQplot CSS END -->

<!-- DATATABLES CSS -->
<link rel="stylesheet" media="screen" href="lib/datatables/css/vpad.css" />

<table class="display" id="example">
	<thead>
		<tr>
			<th>薪资项目</th>
			<th>合计</th>
		</tr>
	</thead>
	<tbody>
		<s:if
			test="#request.salaryStatisticses==null || #request.salaryStatisticses.size==0">
			<tr class="gradeX">
				<td colspan="2">暂无相关数据</td>
			</tr>
		</s:if>
		<s:else>
			<s:iterator value="#request.salaryStatisticses" status="sta" var="s">
				<s:set name="total" value="#s.id"></s:set>
				<s:if test="#sta.even">
					<tr class="gradeA">
				</s:if>
				<s:else>
					<tr class="gradeC">
				</s:else>
				<td><s:if test="#s.details==null || #s.details.size<=0">
                                    暂无
                                </s:if> <s:else>
						<s:iterator value="#s.details" var="detail">
							<a class="button" href="javascript://"> <s:if
									test="#detail.structType.toString().equals('subsidy')">
									<span style="background:url(${ctx}/images/img/add.png)"
										class="icon">&nbsp;</span>
								</s:if> <s:else>
									<span style="background:url(${ctx}/images/img/delete.png)"
										class="icon">&nbsp;</span>
								</s:else>${detail.schemeTitle}:${detail.schemeSalary}</a>
						</s:iterator>
					</s:else></td>
				<td>${s.actaulPaySalary}</td>
				</tr>
			</s:iterator>

		</s:else>
	</tbody>
</table>

